<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>检验报告详情</title>
    <%- include('../_global/baseLibsJKDA') %>
    <link rel="stylesheet" href="/static/css/public.css"/>
    <link rel="stylesheet" href="/static/css/page-main.css"/>
    <style>
        .doctor-header{
            padding: 0 15px;
            line-height: 1.1rem;
            background-color: white;
            border-bottom: 1px solid #d9d9d9;
        }
        .doctor-header h3{
            font-size: 1rem;
            color: #101010;
        }
        .doctor-header p{
            font-size: .92rem;
            color: #909090;
            padding-bottom: 10px;
        }
        .doctor-detail{
            background-color: white;
            padding: 10px 20px;
            color: #101010;
            font-size: .92rem;
            line-height: .92rem;
        }
        .doctor-detail div{
            height: 2rem;
            line-height: 2rem;
        }
    </style>
</head>
<body>
<header class="header-box grey fixed">
    <div class="header-content">
        <div class="left-tool">
            <a class="back" href="javascript:void(0);"><i class="iconfont icon-back"></i></a>
        </div>
        <div class="title">检验报告详情</div>
    </div>
</header>
<div class="doctor-header">
    <h3 class="hosName">

    </h3>
    <p class="reportDate">

    </p>
</div>
<div class="doctor-detail">

</div>
</body>
<script src="/static/js/gzd/pageUrl.js"></script>
<script src="/static/js/gzd/jkda.js"></script>
<script>



     var page_jybg = (function($, page_jybg) {

         var hosName=$.QuickUrlUtils.getRequest("hosName");
         var reportDate= $.QuickUrlUtils.getRequest("reportDate");
         var zxwyh =$.QuickUrlUtils.getRequest("zxwyh");

         var jcbgData=StoreCache.getCache("jybgData");
         var jcbg=JSON.parse(jcbgData);


         var cfg_def = {
             jybgDetail: jybgDetail,
         }

         page_jybg.init = function(cfg){
             $.extend(page_jybg, cfg_def, cfg);
             $(".hosName").text(hosName);
             $(".reportDate").text(reportDate);
             $.QuickRemote.AjaxJson({
                 funcName: "/api/gzd/jkda/queryJybgxq"
                 ,callback:page_jybg.jybgDetail
                 ,params:{
                     surveyingType:"1", //1门诊 2住院
                     zxwyh:zxwyh,//中心唯一号
                     reportId:jcbg.reportId,//报告id
                     medicalOrgId:jcbg.hosCode,//医疗机构代码
                     cardId:"",//检查号
                     serialNum:jcbg.jzlsh,//就诊流水号
                     cardDate:"",//报告日期
                     cardType:"",//卡类型(0-社保卡；1-医保卡；2-自费卡)
                     userCardNo:"",//卡号
                 }
             });

         }

         return page_jybg;

         function jybgDetail(response){
             $(".doctor-detail").html(template("jcbgList", {data:response}));
         }
     })(jQuery, {});

</script>
<script type="text/html" id="jcbgList">
    {{each data}}
        <div>
            <span class="left">检查项目：</span>
            <span class="checkName">{{$value.checkName}}</span>
        </div>
        <div>
                <span class="left">标本名称</span>
                <span class="hosName">{{$value.specimenName}}</span>
        </div>
        <div>
            <span class="left">报告医生：</span>
            <span class="hosName">{{$value.docName}}</span>
        </div>
        <div>
            <span class="left">报告日期：</span>
            <span class="reportDate">{{$value.reportDate}}</span>
        </div>
        <div>
            <span class="left">报告单号：</span>
            <span class="reportId">{{$value.reportId}}</span>
        </div>

    {{/each}}
</script>
</html>